package org.fastsyncer.common.constant;

public class CommonConstant {
	
	//************************************* server *************************************
	public static final String SERVER_IP = "fastsyncer.server.ip";
	public static final String SERVER_PORT = "fastsyncer.server.port";
	public static final String SERVER_CONTEXT = "fastsyncer.server.context";
	/**
	 * /opt/eclipse/workspace/fastsyncer/fastsyncer-server/src/main/resources
	 */
	public static final String SERVER_ROOT = "fastsyncer.root";
	/**
	 * /opt/eclipse/workspace/fastsyncer/fastsyncer-server/src/main/resources/WEB-INF/web.xml
	 */
	public static final String SERVER_ROOT_DESCRIPTOR = "fastsyncer.root.descriptor";
	/**
	 * 本地服务地址,例子: http://127.0.0.1:18686/
	 */
    public static final String SERVER_SERVICE_ADDRESS = "fastsyncer.server.service.address";
    /**
     * 本地认证服务地址,例子: http://127.0.0.1:18686/authenticate
     */
    public static final String SERVER_SERVICE_ADDRESS_AUTHENTICATE = "fastsyncer.server.service.address.authenticate";
	
	//************************************* manager *************************************
	/**
     * 支持同时处理数据迁移任务并发数
     */
	public static final String MANAGER_MIGRATE_NUMBER = "fastsyncer.manager.migrate.max.number";
	/**
	 * 支持同时处理数据同步任务并发数
	 */
	public static final String MANAGER_SYNC_NUMBER = "fastsyncer.manager.sync.max.number";
	/**
	 * 存储路径
	 */
	public static final String MANAGER_STORE_PATH = "fastsyncer.manager.store.path";
	/**
     * 定时器线程个数
     */
    public static final String MANAGER_QUARTZ_THREADCOUNT = "fastsyncer.manager.quartz.threadcount";

	//************************************* worker *************************************
	/**
	 * worker单次任务最多执行条数
	 */
	public static final String WORKER_TASK_MAX_NUMBER = "fastsyncer.worker.task.max.number";
	/**
	 * worker每次批量执行条数
	 */
	public static final String WORKER_BATCH_NUMBER = "fastsyncer.worker.batch.number";
	/**
	 * worker线程数
	 */
	public static final String WORKER_THREAD_NUMBER = "fastsyncer.worker.thread.number";
	
	//************************************* rest *************************************
	/**
	 * 允许访问的IP地址,如果有多个请使用“,”符合拼接,例如：127.0.0.1,10.238.206.222
	 */
	public static final String REST_APPROVAL_IP = "fastsyncer.rest.ws.approval.ips";
	
	//************************************* config *************************************
    /**
     * 启动方式是否为开发模式
     */
    public static final String CONFIG_IS_DEBUG = "fastsyncer.config.is.debug";
    /**
     * 绝对路径
     */
    public static final String CONFIG_CURRENT_PATH = "fastsyncer.config.current.path";
	/**
     * 系统配置文件application.properties
     */
    public static final String CONFIG_PATH_APPLICATION_PROPERTIES = "fastsyncer.config.path.application.properties";
	/**
	 * 认证票据
	 */
	public static final String CONFIG_INTERCEPTOR_TICKET = "fastsyncer.config.interceptor.ticket";
	/**
	 * session会话失效时间（秒）
	 */
	public static final String CONFIG_INTERCEPTOR_SESSION_MAX_AGE = "fastsyncer.config.interceptor.session.max.age";
	/**
	 * 系统管理员帐号
	 */
	public static final String CONFIG_ADMIN_ACCOUNT = "fastsyncer.config.admin.account";
	/**
	 * 系统管理员密码
	 */
	public static final String CONFIG_ADMIN_PWD = "fastsyncer.config.admin.pwd";
	
}
